package view;

import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

import model.ProxyExecution;
import control.ExecListener;

public class NPanel extends JPanel {


	private static final long serialVersionUID = 1L;
	private ProxyExecution execution;
	JButton button = new JButton("Confronta");
	private JTextField textN = new JTextField(6);
	private JLabel times = new JLabel("Tempi:");
	
	
	public NPanel(ProxyExecution execution) {
		this.execution = execution;
		setBorder(BorderFactory.createEtchedBorder());
		setLayout(new BorderLayout());
		
		
		
		
		add(textN, BorderLayout.WEST);
		add(button, BorderLayout.CENTER);
		add(times, BorderLayout.EAST);
		
		
		ExecListener listener = new ExecListener(execution, textN);
		
		button.addActionListener(listener);
		
	}
}
